﻿using QMERP.Domain.Dtos;

namespace QMERP.Application.Services
{
    public interface IPurchaseOrderService
    {
        /// <summary>
        /// 采购订单窗体
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<PageResponse<PurchaseOrderResponse>> Query(PageRequest<PurchaseOrderRequest> request);
        /// <summary>
        /// 获取id的采购订单详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<PurchaseOrderResponse> Detail(long id);
        /// <summary>
        /// 采购订单保存
        /// </summary>
        /// <param name="request"></param>
        /// <param name="isCheck"></param>
        /// <returns></returns>
        Task<PurchaseOrderResponse> Save(PurchaseOrderSaveRequest request, bool isCheck = false);
        /// <summary>
        /// 采购订单审核
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task Check(long[] ids);
        /// <summary>
        /// 采购订单弃审
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task UnCheck(long[] ids);
        /// <summary>
        /// 采购订单取消
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task Cancel(long[] ids);
        //// <summary>
        /// 获取采购单主要信息列表
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<List<PurchaseOrderMainInfoResponse>> GetPurchaseOrderMainInfos(PageRequest<PurchaseOrderRequest> request);
    }
}
